const flow = {
  // namespaced :true,
    state: {
      nodeMap: new Map(),
      isEdit: null,
      selectedNode: {},
      selectFormItem: null,
      design:{},
      runningList: [],
      noTakeList: [],
      endList: [],
      diagramMode: 'design',
    },
    mutations: {
      selectedNode(state, val) {
        state.selectedNode = val
      },
      loadForm(state, val){
        state.design = val
      },
      setKFormJson(state, val){
        state.design.formJson = val
      },
      setKFormItems(state, val){
        state.design.formItems = val
      },
      setIsEdit(state, val){
        state.isEdit = val
      }
    },
  }
  
  export default flow